from django.core.files.storage import Storage
from django.conf import settings

class FastDFSStorage(Storage):

    def _open(self, name, mode='rb'):

        pass

    def _save(self, name, content):
        pass

    def url(self, name):

        # return 'http://192.169.110.153:8888/' + name
        return settings.FDFS_BASE_URL + name
